package com.irs.irsforum.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yihuili
 * @since 2020-02-13
 */
@Data
public class Problem extends Model<Problem> {

    private static final long serialVersionUID = 1L;

    /**
     * 问题id
     */
	@TableId(value="problem_id", type= IdType.AUTO)
	private Long problemId;
    /**
     * 知识节点id
     */
	@TableField("node_id")
	private Long nodeId;
    /**
     * 课程id
     */
	@TableField("subject_id")
	private Long subjectId;
    /**
     * 问题名称
     */
	@TableField("problem_name")
	private String problemName;
    /**
     * 问题描述，选择题的多个选项之间用||分隔
     */
	@TableField("problem_description")
	private String problemDescription;
    /**
     * 问题难度  1-简单，2-中等，3-难
     */
	@TableField("problem_difficulty")
	private Integer problemDifficulty;
    /**
     * 问题类型  SELECT:单选  SELECTS:多选  FILL:填空  JUDGE:判断 SHORT:简答
     */
	@TableField("problem_type")
	private String problemType;
    /**
     * 问题答案的提示
     */
	@TableField("problem_hint")
	private String problemHint;
    /**
     * 问题图片
     */
	@TableField("problem_img")
	private String problemImg;
    /**
     * 问题层次
     */
	@TableField("problem_hierarchy")
	private String problemHierarchy;
    /**
     * 填空数目
     */
	@TableField("blank_number")
	private Integer blankNumber;


	@Override
	protected Serializable pkVal() {
		return this.problemId;
	}

	@Override
	public String toString() {
		return "Problem{" +
				"problemId=" + problemId +
				", nodeId=" + nodeId +
				", subjectId=" + subjectId +
				", problemName=" + problemName +
				", problemDescription=" + problemDescription +
				", problemDifficulty=" + problemDifficulty +
				", problemType=" + problemType +
				", problemHint=" + problemHint +
				", problemImg=" + problemImg +
				", problemHierarchy=" + problemHierarchy +
				", blankNumber=" + blankNumber +
				"}";
	}
}
